<!DOCTYPE html>
<html>
<head>
  <title>{{title}}</title>
  {{> includes/head.html }}
  <link rel="stylesheet" type="text/css" media="all" href="/css/scriptPage.css">
</head>
<body>
  {{> includes/header.html }}
  <div class="container-fluid">
    <div class="row">
      <div class="container-fluid col-sm-8">
        {{> includes/scriptPageHeader.html }}
        <div class="list-controls row container-fluid">
          <ol class="breadcrumb pull-left">
            <li><a href="{{{script.scriptPageUrl}}}">{{script.name}}</a></li>
            <li class="active"><a href="{{{category.categoryPageUrl}}}">{{category.name}}</a></li>
          </ol>
          <div class="input-group pull-left col-sm-1">
          </div>
          <a class="btn btn-sm btn-success pull-right" href="{{{category.categoryPostDiscussionPageUrl}}}" id="create-topic">
            <i class="fa fa-fw fa-plus"></i> 新建反馈
          </a>
        </div>
        {{#script.hasSupport}}
        {{#script.support}}
          {{^isSameOrigin}}
          <div class="alert alert-success small" role="alert">
            <p><i class="fa fa-fw fa-support"></i> <b>Support:</b> <a href="{{{url}}}" rel="external noreferrer noopener nofollow" referrerpolicy="same-origin">{{text}}</a></p>
            如果遇到使用上的问题，请先提交问题，以便作者更好的完善脚本.
          </div>
          {{/isSameOrigin}}
        {{/script.support}}
        {{/script.hasSupport}}
        {{#paginationRendered}}
        <div class="text-center collapse">
          {{{paginationRendered}}}
        </div>
        {{/paginationRendered}}
        <div class="panel panel-default">
          {{> includes/discussionList.html }}
        </div>
        {{#paginationRendered}}
        <div class="text-center">
          {{{paginationRendered}}}
        </div>
        {{/paginationRendered}}
      </div>
      <div class="container-fluid col-sm-4">
        {{> includes/searchBarPanel.html }}
        <div class="panel">
          <div class="panel-body">
            <ul class="nav nav-pills nav-justified">
              <li class="{{^allIssues}}{{#openIssuesOnly}}active{{/openIssuesOnly}}{{/allIssues}}"><a href="{{{category.categoryPageUrl}}}/open">未解决</a></li>
              <li class="{{^allIssues}}{{^openIssuesOnly}}active{{/openIssuesOnly}}{{/allIssues}}"><a href="{{{category.categoryPageUrl}}}/closed">已解决</a></li>
              <li class="{{#allIssues}}active{{/allIssues}}"><a href="{{{category.categoryPageUrl}}}/all">全部</a></li>
            </ul>
          </div>
          {{#script.canDonate}}
          {{#script.contribution}}
          <div class="panel-footer">
            <div class="btn-group btn-group-justified">
              <a rel="external noreferrer noopener nofollow" referrerpolicy="same-origin" href="#" data-toggle="modal" data-target="#donateScriptModal" class="btn btn-donate" title="Monetary donations for this Author">
                <i class="fa fa-fw fa-money"></i><span class=""> 赞助</span>
              </a>
            </div>
          </div>
          {{/script.contribution}}
          {{/script.canDonate}}
        </div>
      </div>
    </div>
  </div>
  {{> includes/scriptModals.html }}
  {{> includes/footer.html }}
  {{> includes/scripts/tableTrLinkScript.html }}
  {{#paginationRendered}}
    {{> includes/scripts/showTopPagination.html }}
  {{/paginationRendered}}
  {{> includes/scripts/lazyIconScript.html }}
  {{> includes/scripts/formControlClear.html }}
</body>
</html>
